How to install subversion 1.6.6 on FreeBSD 7.2
How to install Subversion 1.6.6 on FreeBSD 7.2.
The basic overivew.
- Install FreeBSD.
How do I install FreeBSD? - Update FreeBSD and download the ports tree.
What are the first commands I run after installing FreeBSD - Then install Subversion.
I have previous documents about installing each of the steps above installing Subversion. This document will only cover Subversion.
Installing Subversion on FreeBSD from ports
- Go to
/usr/ports/devel/subversion
and runmake install
.ServerName#
ServerName#cd /usr/ports/devel/subversion
make installNOTE: If you get a failure due to apr already being installed but not being built correctly, then uninstall apr and reinstall it with the default settings. Then go back and try to install subversion again.
ServerName#
ServerName#
ServerName#cd /usr/ports/devel/apr
make deinstall
make BATCH=yes install - Configure Subversion to start at bootup.
#
#echo # Subversion >> /etc/rc.conf
echo 'svnserve_enable="YES"' >> /etc/rc.conf - Create an svn user using the adduser command line wizard. This command will walk you through creating an svn user. Make sure to use the nologin shell and a random password so the user cannot login.
# # adduser
Username: svn
Full name: svn
Uid (Leave empty for default):
Login group [svn]:
Login group is svn. Invite svn into other groups? []:
Login class [default]:
Shell (sh csh tcsh nologin) [sh]: nologin
Home directory [/home/svn]:
Home directory permissions (Leave empty for default):
Use password-based authentication? [yes]:
Use an empty password? (yes/no) [no]:
Use a random password? (yes/no) [no]: yes
Lock out the account after creation? [no]:
Username : svn
Password :
Full Name : svn
Uid : 1002
Class :
Groups : svn
Home : /home/svn
Home Mode :
Shell : /usr/sbin/nologin
Locked : no
OK? (yes/no): yes
adduser: INFO: Successfully added (svn) to the user database.
adduser: INFO: Password for (svn) is: /2CZct48a
Add another user? (yes/no): no
Goodbye! - Make a repos directory in the svn user's home directory.
# mkdir /home/svn/repos - Create a repository.
#
#
#
#cd /home/svn
mkdir repos
cd repos
svnadmin create MyAppThis will create a MyApp folder and populate it with the files needed to start a repository.
This is default subversion repository folder structure:
/home/svn/repos/MyApp/README.txt
/home/svn/repos/MyApp/format
/home/svn/repos/MyApp/conf
/home/svn/repos/MyApp/confauthz
/home/svn/repos/MyApp/conf/passwd
/home/svn/repos/MyApp/confsvnserve.conf
/home/svn/repos/MyApp/db
/home/svn/repos/MyApp/db/current
/home/svn/repos/MyApp/db/format
/home/svn/repos/MyApp/db/fs-type
/home/svn/repos/MyApp/db/fsfs.conf
/home/svn/repos/MyApp/db/min-unpacked-rev
/home/svn/repos/MyApp/db/rep-cache.db
/home/svn/repos/MyApp/db/revprops
/home/svn/repos/MyApp/db/revs
/home/svn/repos/MyApp/db/transactions
/home/svn/repos/MyApp/db/txn-current
/home/svn/repos/MyApp/db/txn-current-lock
/home/svn/repos/MyApp/db/txn-protorevs
/home/svn/repos/MyApp/db/uuid
/home/svn/repos/MyApp/db/write-lock
/home/svn/repos/MyApp/db/revprops/
/home/svn/repos/MyApp/db/revprops/0
/home/svn/repos/MyApp/db/revprops/0/0
/home/svn/repos/MyApp/db/revs/
/home/svn/repos/MyApp/db/revs/0
/home/svn/repos/MyApp/db/revs/0/0
/home/svn/repos/MyApp/db/transactions/
/home/svn/repos/MyApp/db/txn-protorevs/
/home/svn/repos/MyApp/hooks/
/home/svn/repos/MyApp/hooks/post-commit.tmpl
/home/svn/repos/MyApp/hooks/post-lock.tmpl
/home/svn/repos/MyApp/hooks/post-revprop-change.tmpl
/home/svn/repos/MyApp/hooks/post-unlock.tmpl
/home/svn/repos/MyApp/hooks/pre-commit.tmpl
/home/svn/repos/MyApp/hooks/pre-lock.tmpl
/home/svn/repos/MyApp/hooks/pre-revprop-change.tmpl
/home/svn/repos/MyApp/hooks/pre-unlock.tmpl
/home/svn/repos/MyApp/hooks/start-commit.tmpl
/home/svn/repos/MyApp/locks/
/home/svn/repos/MyApp/locks/db-logs.lock
/home/svn/repos/MyApp/locks/db.lock - To configure a Repository and add users, edit the following file:
/home/svn/repos/MyApp/conf/svnserve.conf# ee /home/svn/repos/MyApp/conf/svnserve.conf Uncomment lines below or just create a new svnserve.conf file with these lines:
[general]
anon-access = read
auth-access = write
password-db = /home/svn/userdbNow edit the following file:
/home/svn/repos/MyApp/passwd# ee /home/svn/repos/MyApp/passwd Add users. For example, to add a user allen1 with a password of P@sswd! and another user jared with a password of My$ecre+1, the file would look like this:
[users]
allen1 = P@sswd!
jared = My$ecre+1 - Now start the svn server.
# /usr/local/etc/rc.d/svnserve start - Now you should be able to connect to your repository with an svn client. TortoiseSVN is a popular windows tool that you can use to connect to your repository.
Use the following to connect:
svn://allen1:P@sswd!@ServerName/MyApp
Now i have to figure out a bunch more steps...
How to populate an SVN repository?
How to configure Subversion to use Cyrus-SASL2 to authenticate to a MySQL database?
How to configure Subversion to use Cyrus-SASL2 to authenticate to a MySQL database where the password is stored in a hash? So you can have SVN share Bugzilla users?
How to get Tortoise SVN to connect to an SVN repository?
How to install WebSVN as a web interface to the SVN repository?
Copyright ® Rhyous.com - Linking to this article is allowed without permission and as many as ten lines of this article can be used along with this link. Any other use of this article is allowed only by permission of Rhyous.com.
do you have twitter or facebook;I want to be your fans in hurry.
[...] How to install subversion 1.6.6 on FreeBSD 7.2 [...]
[...] How to install subversion 1.6.6 on FreeBSD 7.2 [...]
[...] How to install subversion 1.6.6 on FreeBSD 7.2 [...]
[...] How to install subversion 1.6.6 on FreeBSD 7.2 [...]
[...] How to install subversion 1.6.6 on FreeBSD 7.2 [...]
[...] How to install subversion 1.6.6 on FreeBSD 7.2 [...]
[...] How to install subversion 1.6.6 on FreeBSD 7.2 [...]
[...] How to install subversion 1.6.6 on FreeBSD 7.2 [...]
[...] How to install subversion 1.6.6 on FreeBSD 7.2 [...]
[...] How to install subversion 1.6.6 on FreeBSD 7.2 [...]
[...] How to install subversion 1.6.6 on FreeBSD 7.2 [...]
[...] How to install subversion 1.6.6 on FreeBSD 7.2 [...]
[...] How to install subversion 1.6.6 on FreeBSD 7.2 [...]
[...] How to install subversion 1.6.6 on FreeBSD 7.2 [...]
[...] How to install subversion 1.6.6 on FreeBSD 7.2 [...]
[...] How to install subversion 1.6.6 on FreeBSD 7.2 [...]
[...] How to install subversion 1.6.6 on FreeBSD 7.2 [...]